package com.s3.khospitalds.common;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: xw
 * @CreateTime: 2024/12/13
 * @Description: 用户
 * @Version: 1.0
 */
public class R {
    private int code=200;
    private String msg="成功";
    private Map<String ,Object> data=new HashMap<String ,Object>();

    public R addData(String key,Object value){
        this.data.put(key,value);
        return this;
    }

    public int getCode() {
        return code;
    }

    public R setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public R setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }
}
